<template>
  <div class="recommend">
    <div v-for="i in recommendList" :key="i.title" class="recommend-item">
      <a :href="i.link">
        <img :src="i.image" alt="">
        <div>{{i.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommendList: {
      type: Array,
      default () {
        return []
      }
    }
  },
  data () {
    return {}
  },
  components: {}
}
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
  padding: 10px 0 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 10px solid #eee;

  .recommend-item {
    flex: 1;
    margin: 5px;

    img {
      width: 100%;
      margin-bottom: 5px;
    }
  }
}
</style>
